package com.gkd.springboot_employeeadmin.service.Imp;

import com.gkd.springboot_employeeadmin.mapper.DepartmentMapper;
import com.gkd.springboot_employeeadmin.pojo.Department;
import com.gkd.springboot_employeeadmin.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServiceImp implements DepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> listall() {
        return departmentMapper.listall();
    }
}
